import request from '@/utils/request'

// 查询团队人员信息列表
export function listTeamUserInfo(query) {
  return request({
    url: '/pm/teamUserInfo/list',
    method: 'get',
    params: query
  })
}

// 查询团队人员信息详细
export function getTeamUserInfo(id) {
  return request({
    url: '/pm/teamUserInfo/' + id,
    method: 'get'
  })
}

// 新增团队人员信息
export function addTeamUserInfo(data) {
  return request({
    url: '/pm/teamUserInfo',
    method: 'post',
    data: data
  })
}

// 修改团队人员信息
export function updateTeamUserInfo(data) {
  return request({
    url: '/pm/teamUserInfo',
    method: 'put',
    data: data
  })
}

// 删除团队人员信息
export function delTeamUserInfo(id) {
  return request({
    url: '/pm/teamUserInfo/' + id,
    method: 'delete'
  })
}
